import { ICLoseBusType } from "./interface";

export const getAddCloseDetailDataProcDefKey = (
  detailData: any | null | undefined,
  defaultProcDefKey = "scm_common_proc",
  busType: ICLoseBusType
) => {
  if (busType == 2 || busType == 3) {
    return defaultProcDefKey;
  }
  if (detailData?.proofWay == "1") {
    return "scm_ele_process";
  }
  return defaultProcDefKey;
};
